package com.lyk.coursearrange.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyk.coursearrange.dao.PostAsJurisdictionDao;
import com.lyk.coursearrange.entity.PostAsJurisdiction;
import com.lyk.coursearrange.service.PostAsJurisdictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostAsJurisdictionServiceImpl extends ServiceImpl<PostAsJurisdictionDao, PostAsJurisdiction> implements PostAsJurisdictionService {

    @Autowired
    private PostAsJurisdictionDao postAsJurisdictionDao;

    @Override
    public void deleteByPoId(Long po_id) {
        postAsJurisdictionDao.deleteByPoId(po_id);
    }

    @Override
    public int insertBypoIdandjurId(Long po_id, Long jur_id) {
        return postAsJurisdictionDao.insertBypoIdandjurId(po_id,jur_id);
    }
}
